﻿using WeDonekRpc.Helper;

namespace Basic.UserFormService.Calculate.Extend
{
    public static class SpecialExtend
    {
        public static string MoneyToChina ( object num )
        {
            return Tools.GetChinaMoney(Convert.ToDecimal(num));
        }
        public static decimal ChinaToMoney ( object str )
        {
            if ( str is string i )
            {
                return Tools.ChinaMoneyToNum(i);
            }
            return decimal.Zero;
        }
    }
}
